package com.yicong.ants.scenic.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.x.livesdk.BaseDataBindingHolder
import com.yicong.ants.R
import com.yicong.ants.databinding.ScenicWeatherListItemBinding
import com.yicong.ants.scenic.data.WeatherInfoItem

class WeatherInfoAdapter(weatherInfoItems: ArrayList<WeatherInfoItem>) :
    BaseQuickAdapter<WeatherInfoItem, BaseDataBindingHolder<ScenicWeatherListItemBinding>>(
        R.layout.scenic_weather_list_item,
        weatherInfoItems
    ) {

    override fun convert(
        holder: BaseDataBindingHolder<ScenicWeatherListItemBinding>,
        item: WeatherInfoItem
    ) {
        holder.dataBinding?.data = item
    }
}